package com.oo.abstractAndInterface_6.atm;

/**
 * Card--银行卡
 *
 * @author: Jovi
 * @createTime: 2017-03-24 16:59
 **/
public abstract class Card {

    private String id;

    private String passwd;

    private String name;

    private double balance;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }


    public abstract boolean withdrawingMoney(double money);

    public Card() {
    }

    public Card(String id, String passwd, String name, double balance) {
        this.id = id;
        this.passwd = passwd;
        this.name = name;
        this.balance = balance;
    }
}
